<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head profile="http://selenium-ide.openqa.org/profiles/test-case">
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<link rel="selenium.base" href="" />
<title>Test_POR_07_006_CheckDisplayLanguageOfPortalAfterChangeLanguageInOrganization</title>
</head>
<body>
<table cellpadding="1" cellspacing="1" border="1">
<thead>
<tr><td rowspan="1" colspan="3">Test_POR_07_006_CheckDisplayLanguageOfPortalAfterChangeLanguageInOrganization</td></tr>
</thead><tbody>
<tr>
	<td>open</td>
	<td>/portal/public/classic/</td>
	<td></td>
</tr>
<tr>
	<td>echo</td>
	<td>-- Check display language of portal after change language in Organization portlet--</td>
	<td></td>
</tr>
<tr>
	<td>windowMaximize</td>
	<td></td>
	<td></td>
</tr>
<tr>
	<td>click</td>
	<td>link=Sign in</td>
	<td></td>
</tr>
<tr>
	<td>waitForElementPresent</td>
	<td>username</td>
	<td></td>
</tr>
<tr>
	<td>type</td>
	<td>username</td>
	<td>root</td>
</tr>
<tr>
	<td>type</td>
	<td>password</td>
	<td>gtn</td>
</tr>
<tr>
	<td>clickAndWait</td>
	<td>//div[@id='UIPortalLoginFormAction']/div/div/div</td>
	<td></td>
</tr>
<tr>
	<td>echo</td>
	<td>-- Go to user and group management--</td>
	<td></td>
</tr>
<tr>
	<td>clickAndWait</td>
	<td>link=Users and groups management</td>
	<td></td>
</tr>
<tr>
	<td>echo</td>
	<td>-- Choose an user in list --</td>
	<td></td>
</tr>
<tr>
	<td>click</td>
	<td>//div[@id='UIListUsersGird']/table/tbody/tr[3]/td[5]/div/img[1]</td>
	<td></td>
</tr>
<tr>
	<td>echo</td>
	<td>-- Choose User Profile tab--</td>
	<td></td>
</tr>
<tr>
	<td>waitForElementPresent</td>
	<td>//div[@id='UIUserManagement']/div[1]/div/div/div/div/div/div/div/div/div[2]/div/div/div/div</td>
	<td></td>
</tr>
<tr>
	<td>click</td>
	<td>//div[@id='UIUserManagement']/div[1]/div/div/div/div/div/div/div/div/div[2]/div/div/div/div</td>
	<td></td>
</tr>
<tr>
	<td>waitForElementPresent</td>
	<td>user.language</td>
	<td></td>
</tr>
<tr>
	<td>select</td>
	<td>user.language</td>
	<td>label=Vietnamese</td>
</tr>
<tr>
	<td>click</td>
	<td>link=Save</td>
	<td></td>
</tr>
<tr>
	<td>waitForTextPresent</td>
	<td>The user profile has been updated.</td>
	<td></td>
</tr>
<tr>
	<td>verifyTextPresent</td>
	<td>The user profile has been updated.</td>
	<td></td>
</tr>
<tr>
	<td>waitForElementPresent</td>
	<td>//div[3]/div/div[2]/div/div/div/div/div/div[3]/div/table/tbody/tr/td/div/div/div/div/a</td>
	<td></td>
</tr>
<tr>
	<td>click</td>
	<td>//div[3]/div/div[2]/div/div/div/div/div/div[3]/div/table/tbody/tr/td/div/div/div/div/a</td>
	<td></td>
</tr>
<tr>
	<td>waitForElementPresent</td>
	<td>link=Sign out</td>
	<td></td>
</tr>
<tr>
	<td>clickAndWait</td>
	<td>link=Sign out</td>
	<td></td>
</tr>
<tr>
	<td>open</td>
	<td>/portal/public/classic/</td>
	<td></td>
</tr>
<tr>
	<td>echo</td>
	<td>-- Sign In portal by account which edited above--</td>
	<td></td>
</tr>
<tr>
	<td>click</td>
	<td>link=Sign in</td>
	<td></td>
</tr>
<tr>
	<td>waitForElementPresent</td>
	<td>username</td>
	<td></td>
</tr>
<tr>
	<td>type</td>
	<td>username</td>
	<td>mary</td>
</tr>
<tr>
	<td>type</td>
	<td>password</td>
	<td>gtn</td>
</tr>
<tr>
	<td>clickAndWait</td>
	<td>//div[@id='UIPortalLoginFormAction']/div/div/div</td>
	<td></td>
</tr>
<tr>
	<td>verifyTextPresent</td>
	<td>Trang chủ</td>
	<td></td>
</tr>
<tr>
	<td>clickAndWait</td>
	<td>link=Đăng xuất</td>
	<td></td>
</tr>
<tr>
	<td>open</td>
	<td>/portal/public/classic/</td>
	<td></td>
</tr>
<tr>
	<td>echo</td>
	<td>-- Change language of user to English--</td>
	<td></td>
</tr>
<tr>
	<td>click</td>
	<td>link=Sign in</td>
	<td></td>
</tr>
<tr>
	<td>waitForElementPresent</td>
	<td>username</td>
	<td></td>
</tr>
<tr>
	<td>type</td>
	<td>username</td>
	<td>mary</td>
</tr>
<tr>
	<td>type</td>
	<td>password</td>
	<td>gtn</td>
</tr>
<tr>
	<td>clickAndWait</td>
	<td>//div[@id='UIPortalLoginFormAction']/div/div/div/a</td>
	<td></td>
</tr>
<tr>
	<td>waitForElementPresent</td>
	<td>link=Thay đổi ngôn ngữ</td>
	<td></td>
</tr>
<tr>
	<td>click</td>
	<td>link=Thay đổi ngôn ngữ</td>
	<td></td>
</tr>
<tr>
	<td>waitForElementPresent</td>
	<td>link=Tiếng Anh</td>
	<td></td>
</tr>
<tr>
	<td>click</td>
	<td>link=Tiếng Anh</td>
	<td></td>
</tr>
<tr>
	<td>clickAndWait</td>
	<td>link=Áp dụng</td>
	<td></td>
</tr>
<tr>
	<td>verifyTextPresent</td>
	<td>Home</td>
	<td></td>
</tr>
<tr>
	<td>clickAndWait</td>
	<td>link=Sign out</td>
	<td></td>
</tr>

</tbody></table>
</body>
</html>
